from dataholder import dataholder

"""
Contains
********

mood (1 - 100)   -   this i uses internal



point(3) - 1 is startingpoint
color(3) - color and variasion
angel(3) - 0-2pi
lapps(3) - 1-100
radious(3)   2 - (max_x+max_y)/2
thickness - 1-100

nrofsteps (10-1000)
nroftimes (1-20)

edge_x(1) returns (0,point_1[y])
edge_y(1) returns (point_1[x],0)
edge_q(1) will give one of above

Refresh() - ge new values

"""
class paramstruct():
    def __init__(self,data,points,colors):
        self.mood=data.get0to(100)
        self.data=data
        self.points=points
        self.colors=color
        self.new()

    def new(self):
        self.new_points()
        self.new_colors()
        

    def edge_x(self,i):
        return (0,self.point[i][1])

    def edge_y(self,i):
        return (self.point[i][0],0)

    def edge_q(self,i):
        if(self.data.tof()): return self.edge_x(i)
        else: return self.edge_y(i)

    def new_points(self):
        self.point=[]
        self.point.add(self.points.getpoint())
        self.point.add(self.points.getpoint())
        self.point.add(self.points.getpoint())

    def new_colors(self):
        self.color=[]
        self.color.add(self.colors.getcolor())
        self.color.add(self.colors.getcolor())
        self.color.add(self.colors.getcolor())
        

    
